package com.mytijian.openapi.adapter.dianping.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.mytijian.openapi.adapter.dianping.dao.dataobject.DzopenShopAuthDO;
import com.mytijian.openapi.adapter.dianping.dao.param.DzopenShopAuthDAOQuery;

@Mapper
public interface DzopenShopAuthDAO {
	
	/**
	 * 新建一条授权记录并select id
	 * @param shopAuthDO
	 * @return
	 */
	int insert(DzopenShopAuthDO shopAuthDO);
	
	int update(DzopenShopAuthDO shopAuthDO);
	
	List<DzopenShopAuthDO> select(DzopenShopAuthDAOQuery query);

	List<DzopenShopAuthDO> selectAll();

}
